<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Schools Management System</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />

</head>
<body>
<?php
require_once '../Login/databaseconnection.php';
if(!loggedin())
{
require_once '../index.php';
}
else
{
if($T_NIC_Number!=" "&&$School_Id!=" "&&$First_Name!=" "&&$Last_Name!=" "&&$Date_Of_Birth!=" "&&$Gender!=" "&&$Nature_Of_Appointment!=" "&&$Service!=" "&&$Acadamic_Qualifications!=" "&&$Professional_Qualifications!=" "&&$Achievements!=" "&&$Address!=" "&&$Mobile_Tp_Number!=" "&&$Home_Tp_Number!=" "&&$Office_Tp_Number!=" "&&$Appointment_Date!=" "&&$Appointed_Subject!=" ")
	{
	require_once 'reg.php';
	}
	if($T_NIC_Number==" " || $School_Id==" " || $First_Name==" " || $Last_Name==" " || $Date_Of_Birth==" " || $Gender==" " || $Nature_Of_Appointment==" " || $Service==" " || $Acadamic_Qualifications==" " || $Professional_Qualifications==" " || $Achievements==" " || $Address==" " || $Mobile_Tp_Number==" "||$Home_Tp_Number==" " || $Office_Tp_Number==" " || $Appointment_Date==" " || $Appointed_Subject==" ")
	{
		$_SESSION['errorin']="Please fill all!";
	}
	
?>
	
<div id="wrap">

<div id="header">
<table width="1237" border="0">
  <tr>
    <td width="706" height="119"><h1 class="heaaderte"><font color="#996699" style="text-shadow:#969" size="+6">Schools Management System</font></h1></td>
    <td width="472">&nbsp;</td>
  </tr>
</table>

</div>

<div id="menu1_bg">
		<div id="menu1">
			
	
			<ul>
				<li><a href="../index.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Home</font></a></li>
				<li><a href="../Schools/Schools.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Schools</font></a></li>
				<li><a href="teachers.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Teachers</font></a></li>
				<li><a href="../Lab/Labs.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Labs</font></a></li>
				<li><a href="../Resources/Resources.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Resources</font></a></li>
                <li><a href="#"><font color="#CCCC66" style="text-shadow:#969" size="+1">Resource Team</font></a></li>
                         <li><a href="../Programmes/Programmes.php" class="active"><font color="#CCCC66" style="text-shadow:#969" size="+1">Programmes</font></a></li>
                                  <li><a href="../Competition/Competition.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Competitions</font></a></li>
                 
			</ul>
	</div>
  </div>
<div class="lefts">
  
<div class="articles">
<form action="#" method="POST">
<table width="965" border="0">
  <tr>
    <th height="26" colspan="3" scope="row">   <?php
    if(isset($_POST['Register']))
{
	if(isset($_SESSION['errorin']))
	{
		echo $_SESSION['errorin'];
		unset($_SESSION['errorin']);
	}
	if(isset($_SESSION['error']))
	{
		echo $_SESSION['error'];
		unset($_SESSION['error']);
		
	}
	
}?></th>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th scope="row">Firstname: </th>
    <td><label>
      <input type="text" name="textfield" />
    </label></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th scope="row">Lastname:</th>
    <td><input type="text" name="textfield2" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th scope="row">NIC Number: </th>
    <td><input type="text" name="textfield3" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th scope="row">Gender:</th>
    <td><p>
      <label>
        <input type="radio" name="RadioGroup1" value="radio" />
        Male</label>
      <br />
      <label>
        <input type="radio" name="RadioGroup1" value="radio" />
        Female</label>
      <br />
    </p></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <th scope="row">Date of birth: </th>
    <td><label>Year:
      <select name="select">
      </select>
    </label></td>
    <td><label>Month:
      <select name="select2">
      </select>
    </label></td>
    <td><label>Day:
      <select name="select3">
      </select>
    </label></td>
  </tr>
  <tr>
    <th scope="row">School Id: </th>
    <td><select name="select4">
    </select></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

<table width="964" height="85" border="0">
  <tr>
    <th height="21" scope="row">Contact address: </th>
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <th height="26" scope="row">Telephone number: </th>
    <td><label>Home:
      <input type="text" name="textfield4" />
    </label></td>
    <td><label>Work:
      <input type="text" name="textfield5" />
    </label></td>
    <td><label>Cellular:
      <input type="text" name="textfield6" />
    </label></td>
  </tr>
  <tr>
    <th scope="row">E@mail Id: </th>
    <td colspan="2"><input type="email" name="email"/></td>
    <td>&nbsp;</td>
  </tr>
</table>
<br/>
<p>Nature of the appointment:
  <select name="select35">
  </select>
  Other:
  <input type="text" name="textfield22" />
</p>
<br/>
<table width="200" border="1">
  <tr>
    <td>Appointment Date:</td>
    <td>Year:
      <select name="select36">
      </select></td>
    <td>Month:
      <select name="select37">
      </select></td>
    <td>Day:
      <select name="select38">
      </select></td>
  </tr>
  <tr>
    <td>Achievements &amp; Awardes:</td>
    <td colspan="3"><input type="text" name="textfield23" /></td>
  </tr>
  <tr>
    <td>Resource team member:</td>
    <td colspan="3"><label>
      <input type="radio" name="RadioGroup1" value="radio" />
      Yes</label>
      <br />
      <label>
        <input type="radio" name="RadioGroup1" value="radio" />
        No</label></td>
  </tr>
  <tr>
    <td>Service:</td>
    <td colspan="3"><select name="select39">
    </select></td>
  </tr>
</table>
<br/>
<h4>Academic qualifications: </h4>
<br/>
<label>
  <input type="checkbox" name="checkbox2" value="checkbox" />
  A/Level<br/>
</label>
<label>
  <input type="checkbox" name="checkbox" value="checkbox" />
  O/Level</label>
<br />
<input type="checkbox" name="checkbox3" value="checkbox" />
Degree holder 
    ,Subjects:
<textarea name="textarea2"></textarea>
<br/>
<br/>
<h4>Profitional qualifications: <br/>
  <br/>
  <a href="regtea.php">Reset</a>|
  <input name="Submit" align="middle" type="submit" value="Register" />
</h4>
<a href="#"> Add into resource team</a><span>|</span><a href="#">Register the training details</a><br/>
 </form>
 
</div>
</div>

<div class="rightmenus"> 
<h1>TEACHERS</h1><br />
<table width="220" border="0">
  <tr>
    <td width="210" height="41"><a href="regtea.php">Add New Teaher Details</a></td>
   

  </tr>
 
  <tr>
    <td height="41"><a href="searchtea.php">Search Teachers Details</a></td>

    
  </tr>
  <tr>
    <td height="41"><a href="updatetea.php">Update a Teachers Details</a></td>
 
    
  </tr>
  <tr>
    <td height="41"><a href="deltea.php">Delete Teachers Details</a></td>
    
    
  </tr>
  <tr>
    <td height="41"><a href="viewalltea.php">View All</a></td>
   

  </tr>
</table>
</div>
 
 <div style="clear: both;"> </div>


<div id="footer"><table width="1236" height="38" border="0">
    <tr>
      <td width="904" height="34">Schools Managemrnt System &copy; 2012 </td>
      <td width="50"><strong><a href="#" class="active">Home</a><a href="#"></a></strong>|</td>
      <td width="80"><strong><a href="#">Contact us</a></strong>|</td>
      <td width="40"><a href="http//www.facebook.com"><img src="../images/facebook1.png" width="54" height="54"/></a></td>
      <td width="38"><a href="http//twitter.com"><img src="../images/twitter.png" width="35" height="47"/></a></td>
      <td width="36"><a href="http//www.google.lk"><img src="../images/google.png" width="64" height="64"/></a><a href=""http="http"//www.yahoo.com""></a></td>
      <td width="58"><a href=""http="http"//www.yahoo.com""><img src="../images/yahoo.png" alt="" width="64" height="64"/></a></td>
    </tr>
  </table>
</div>
</div>

<?php

	}
?>
</body>
</html>